<?php
/**
* Scan album folder for images
*/

$album_id = $variable->get('id', 'integer', 0);
$code = $variable->get('code', 'string', ''); # For future references

$albums = new albums();
$albums->scan_folder($album_id, $code);

$messenger = new messenger('notice', 'If no images scanned, please check for file name extesions. Lower case .jpg files only.');

$_SESSION['search_album_id']=$album_id;
stopper::url("images-albums-admin.php?id={$album_id}&code={$code}");
?>